temporarily removed indexd string (in place of just string now) from emitted event in bandwidth generator
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"_format": "hh-sol-dbg-1",
|
||||
"buildInfo": "../../../../../build-info/e1b958725c1d5919797e36f0f70bc832.json"
|
||||
"buildInfo": "../../../../../build-info/c0a67c83b3155a7293390fdd5cae3164.json"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"_format": "hh-sol-dbg-1",
|
||||
"buildInfo": "../../../../../build-info/e1b958725c1d5919797e36f0f70bc832.json"
|
||||
"buildInfo": "../../../../../build-info/c0a67c83b3155a7293390fdd5cae3164.json"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"_format": "hh-sol-dbg-1",
|
||||
"buildInfo": "../../../../../../build-info/e1b958725c1d5919797e36f0f70bc832.json"
|
||||
"buildInfo": "../../../../../../build-info/c0a67c83b3155a7293390fdd5cae3164.json"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"_format": "hh-sol-dbg-1",
|
||||
"buildInfo": "../../../../build-info/e1b958725c1d5919797e36f0f70bc832.json"
|
||||
"buildInfo": "../../../../build-info/c0a67c83b3155a7293390fdd5cae3164.json"
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"_format": "hh-sol-cache-2",
|
||||
"files": {
|
||||
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/contracts/BandwidthGenerator.sol": {
|
||||
"lastModificationDate": 1641816859262,
|
||||
"contentHash": "7637957db2593564c0135f527db4673b",
|
||||
"lastModificationDate": 1641908013011,
|
||||
"contentHash": "7de243b3b780dd7ee86ffb17fc6f3e07",
|
||||
"sourceName": "contracts/BandwidthGenerator.sol",
|
||||
"solcConfig": {
|
||||
"version": "0.8.10",
|
||||
@@ -41,7 +41,7 @@
|
||||
]
|
||||
},
|
||||
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/contracts/CosmosToken.sol": {
|
||||
"lastModificationDate": 1641811013678,
|
||||
"lastModificationDate": 1641825755989,
|
||||
"contentHash": "fc5dd09fe73bc6cfece970f702a3aba1",
|
||||
"sourceName": "contracts/CosmosToken.sol",
|
||||
"solcConfig": {
|
||||
|
||||
@@ -28,7 +28,7 @@ contract BandwidthGenerator is Ownable {
|
||||
uint256 Bandwidth,
|
||||
uint256 indexed VerificationKey,
|
||||
bytes SignedVerificationKey,
|
||||
string indexed CosmosRecipient
|
||||
string CosmosRecipient
|
||||
);
|
||||
|
||||
event RatioChanged(
|
||||
|
||||
@@ -13,7 +13,7 @@ contract('BandwidthGenerator', (accounts) => {
|
||||
let erc20token;
|
||||
let owner = accounts[0];
|
||||
let user = accounts[1];
|
||||
let cosmosRecipient = 'nymt1f06hzmwf9chqewkpv93ajk6tayzp4784m2da9x'; // random sandbox testnet address
|
||||
let cosmosRecipient = "nymt1f06hzmwf9chqewkpv93ajk6tayzp4784m2da9x"; // random sandbox testnet address
|
||||
let initialRatio = 1073741824; // 1073741824 bytes = 1GB
|
||||
let newRatio;
|
||||
let tokenAmount = web3.utils.toWei('100'); // this is converting 100 tokens to their representation in wei: 100000000000000000000
|
||||
@@ -106,7 +106,7 @@ contract('BandwidthGenerator', (accounts) => {
|
||||
Bandwidth: expectedBandwidthInMB.toString(),
|
||||
VerificationKey: '15',
|
||||
SignedVerificationKey: '0x39530a00eae2a5aac8144209ccac917ae56bf4a9589544cb0020f92fee35a3ba39530a00eae2a5aac8144209ccac917ae56bf4a9589544cb0020f92fee35a3ba',
|
||||
// CosmosRecipient: cosmosRecipient
|
||||
CosmosRecipient: cosmosRecipient
|
||||
});
|
||||
|
||||
await expectEvent.inTransaction(tx.tx, erc20token, 'Transfer', {
|
||||
@@ -144,7 +144,7 @@ contract('BandwidthGenerator', (accounts) => {
|
||||
Bandwidth: newexpectedBandwidthInMB.toString(),
|
||||
VerificationKey: '15',
|
||||
SignedVerificationKey: '0x39530a00eae2a5aac8144209ccac917ae56bf4a9589544cb0020f92fee35a3ba39530a00eae2a5aac8144209ccac917ae56bf4a9589544cb0020f92fee35a3ba',
|
||||
// CosmosRecipient: cosmosRecipient
|
||||
CosmosRecipient: cosmosRecipient
|
||||
});
|
||||
|
||||
await expectEvent.inTransaction(tx.tx, erc20token, 'Transfer', {
|
||||
@@ -207,7 +207,7 @@ contract('BandwidthGenerator', (accounts) => {
|
||||
Bandwidth: expectedBandwidthInMB.toString(),
|
||||
VerificationKey: '15',
|
||||
SignedVerificationKey: '0x39530a00eae2a5aac8144209ccac917ae56bf4a9589544cb0020f92fee35a3ba39530a00eae2a5aac8144209ccac917ae56bf4a9589544cb0020f92fee35a3ba',
|
||||
// CosmosRecipient: cosmosRecipient
|
||||
CosmosRecipient: cosmosRecipient
|
||||
});
|
||||
|
||||
await expectEvent.inTransaction(tx.tx, erc20token, 'Transfer', {
|
||||
|
||||
Reference in New Issue
Block a user