-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set state endpoint #7
Conversation
return sf.simulator.SetKeyValueForAddress(address, keyValueMap) | ||
} | ||
|
||
func (sf *simulatorFacade) SetStateMultiple(stateSlice []*dtos.AddressState) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
}, | ||
{ | ||
"address": "erd1lllllllllllllllllllllllllllllllllllllllllllllllllllsckry7t", | ||
"shardID": 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed to repeat 3 times if you apply my suggestion :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
# sign transaction | ||
user_signer = UserSigner(pem.secret_key) | ||
tx_computer = TransactionComputer() | ||
call_transaction.signature = user_signer.sign(tx_computer.compute_bytes_for_signing(call_transaction)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed? Should we allow the script to work also on the regular gateways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the signing part for the example purpose.
Script will not work because calls extra endpoints to generate blocks
mx-chain-go
module: Set entire state of an account mx-chain-go#5752